package BLL;

import java.util.Scanner;

public class LoginManage {
	public static void LonginMan(){
		Scanner scanner=new Scanner(System.in);
		for (int i = 3; i >0; i--) {
			System.out.println("请输入账号");
			String userId=scanner.next();
			System.out.println("请输入密码");
			String userpwd=scanner.next();
			if (userId.equals("admin")&&userpwd.equals("111222")) {				
				exer();
				break;
			}else {
				if (i==1) {
					System.out.println("你输入的账号密码有误，将自动退出");
					break;
				}
				System.out.println("您输入的密码或账号有误，还有"+(i-1)+"次机会");
			}
	}

}
	public static void exer(){
		Scanner scanner=new Scanner(System.in);
		System.out.println("\t书店管理系统");
		System.out.println("***********************************************");
		System.out.println("\t1.会员管理");
		System.out.println("\t2.书籍管理");
		System.out.println("\t3.购物结算");
		System.out.println("\t4.积分兑换奖品");
		System.out.println("\t5.注销");
		System.out.println("***********************************************");
		System.out.println("请选择输入的数字");
		int num=scanner.nextInt();
		if (num==1) {
			vip.vipguanli();
		}else if (num==2) {
			shujiguanli.shujiguan();
		}
}
}
